import request from '@/utils/request'

// 查询常见问题列表
export function listFaq_question(query) {
    return request({
        url: '/business/faq_question/list',
        method: 'get',
        params: query
    })
}

// 查询常见问题详细
export function getFaq_question(id) {
    return request({
        url: '/business/faq_question/' + id,
        method: 'get'
    })
}

// 新增常见问题
export function addFaq_question(data) {
    return request({
        url: '/business/faq_question',
        method: 'post',
        data: data
    })
}

// 修改常见问题
export function updateFaq_question(data) {
    return request({
        url: '/business/faq_question',
        method: 'put',
        data: data
    })
}

// 删除常见问题
export function delFaq_question(id) {
    return request({
        url: '/business/faq_question/' + id,
        method: 'delete'
    })
}

// 导出常见问题
export function exportFaq_question(query) {
    return request({
        url: '/business/faq_question/export',
        method: 'get',
        params: query
    })
}